<template>
  <div class="shopbag-list-item">
    <div class="shopbag-item">
      <div class="product-img">
      <img class="auto-img" :src="product.small_img" alt="">
      </div>
      <div class="pro-text-box">
        <div class="pro-text">
          <div class="pro-name">
            <div class="one-text">{{product.name}}</div>
            <div class="pro-rule">{{product.rule}}</div>
          </div>
          <div class="pro-enname one-text">{{product.enname}}</div>
        </div>
        <div class="price-count">
          <div class="price">&yen;{{product.price}}</div>
          <div class="count-box">x{{product.count}}</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "OrderProItem",
   props: {
    //单个商品数据
    product: {
      type: Object,
      default() {
        return {};
      }
    }
  }
};
</script>

<style lang="less" scoped>
.count-box{
  font-size: 14px;
  color: #666;
}
.pro-text-box {
  width: calc(~"100% - 90px");
}
.price {
  color: #0c34ba;
  font-size: 14px;
  font-weight: bold;
}
.count-box {
  margin-left: auto;
}
.price-count {
  display: flex;
  align-items: center;
}
.pro-rule {
  margin-left: 20px;
  color: #999;
  font-size: 12px;
}
.pro-name {
  font-size: 14px;
  color: #444;
  display: flex;
  align-items: center;
}

.pro-enname {
  color: #999;
}
.pro-text {
  margin-bottom: 20px;
}
.checkbox-box {
  margin-right: 10px;
}

.product-img {
  width: 80px;
  height: 80px;
  background-color: #ddd;
  border-radius: 5px;
  overflow: hidden;
  margin-right: 10px;
}

.shopbag-item {
  height: 80px;
  background-color: #fff;
  padding: 10px;
  display: flex;
  align-items: center;
}

</style>